/**
 * 
 */
package com.gametheoryserver.gui.nim.action;

import com.gametheoryserver.gui.nim.PlayNim;
import com.gametheoryserver.gui.nim.state.PlayNimStateHolder;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;

/**
 * @author Tomas Barak
 *
 */
public class RowChangeAction implements ValueChangeListener {

	private PlayNim playNim;
	/**
	 * 
	 */
	public RowChangeAction(PlayNim playNim) {
		this.playNim = playNim;
	}

	/* (non-Javadoc)
	 * @see com.vaadin.data.Property.ValueChangeListener#valueChange(com.vaadin.data.Property.ValueChangeEvent)
	 */
	@Override
	public void valueChange(ValueChangeEvent event) {
		PlayNimStateHolder.setState(PlayNimStateHolder.ROW_CHANGE_STATE,
				playNim);
	}

}
